//
//  ViewController.swift
//  DBFM
//
//  Created by ming on 16/5/3.
//  Copyright © 2016年 ming. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    /** 背景 */
    @IBOutlet weak var backImageView: UIImageView!
    /** 旋转的专辑图片 */
    @IBOutlet weak var rotateImageView: MGRotateImageView!
    override func viewDidLoad() {
        super.viewDidLoad()
       
        rotateImageView.startRotation()
        
        // 设置图片模糊效果（自适应一个控件）
        let effect = UIVisualEffect()
        let effectView = UIVisualEffectView(effect: effect)
        effectView.frame.size = CGSizeMake(view.frame.width, view.frame.height)
        backImageView.addSubview(effectView)
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

